$.fn.dataTableExt.oSort['uk_date_time-asc']  = function(a,b) {
	var reg=new RegExp("(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/(19|20|21)[0-9]{2} , ([0-1][0-9]|[2][0-3]):([0-5][0-9])","g");
	var ukDatea = a.split(reg);
	var ukDateb = b.split(reg);
 
	var x = (ukDatea[4] + ukDatea[3] + ukDatea[2]+ ukDatea[1] + ukDatea[0]) * 1;
	var y = (ukDatea[4] + ukDatea[3] + ukDatea[2]+ ukDatea[1] + ukDatea[0]) * 1;
 
	return ((x < y) ? -1 : ((x > y) ?  1 : 0));
};
 
$.fn.dataTableExt.oSort['uk_date_time-desc'] = function(a,b) {
	var reg=new RegExp("(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/(19|20|21)[0-9]{2} , ([0-1][0-9]|[2][0-3]):([0-5][0-9])","g");
	var ukDatea = a.split(reg);
	var ukDateb = b.split(reg);
 
	var x = (ukDatea[4] + ukDatea[3] + ukDatea[2]+ ukDatea[1] + ukDatea[0]) * 1;
	var y = (ukDatea[4] + ukDatea[3] + ukDatea[2]+ ukDatea[1] + ukDatea[0]) * 1;
 
	return ((x < y) ? 1 : ((x > y) ?  -1 : 0));
};




$(function()
	{
		$('#date1').datepicker(); 
		$('#date2').datepicker();
		$('#historique').dataTable({"sPaginationType": "full_numbers",
									"bFilter":false,
									"oLanguage":{
									"sProcessing":   "Traitement en cours...",
									"sLengthMenu":   "Afficher _MENU_ &eacute;l&eacute;ments",
									"sInfo":         "&Eacute;l&eacute;ments _START_ &agrave; _END_ sur _TOTAL_ ",
									"oPaginate": {"sFirst":    "Premier","sPrevious": "Pr&eacute;c&eacute;dent","sNext":     "Suivant","sLast":     "Dernier"}
									},
									"aLengthMenu": [[20, 50, 1000, -1], [20, 50, 100, "Tous"]]
});
	});